import request from '@/utils/request'

// 查询疾病信息列表
export function listDisease(query) {
  return request({
    url: '/system/Disease/list',
    method: 'get',
    params: query
  })
}

// 查询疾病信息详细
export function getDisease(Id) {
  return request({
    url: '/system/Disease/' + Id,
    method: 'get'
  })
}

// 新增疾病信息
export function addDisease(data) {
  return request({
    url: '/system/Disease',
    method: 'post',
    data: data
  })
}

// 修改疾病信息
export function updateDisease(data) {
  return request({
    url: '/system/Disease',
    method: 'put',
    data: data
  })
}

// 删除疾病信息
export function delDisease(Id) {
  return request({
    url: '/system/Disease/' + Id,
    method: 'delete'
  })
}
